package com.w2cx.selenium.testCase;

import org.testng.Assert;
import org.testng.annotations.Parameters;
import org.testng.annotations.Test;

public class testSensitiveWordManage extends CaseBase{

    @Test
    @Parameters({"sensiWordName"})
    public void testAddSensiWord(String sensiWordName){
        //测试添加敏感词
        swmp.addSensiWord(sensiWordName);

        Assert.assertTrue(swmp.addSensiWordSuccess(sensiWordName),"添加敏感词失败！");
        System.out.println("添加敏感词成功！");


    }

    @Test
    @Parameters({"sensiWordName"})
    public void testDelSensiWord(String sensiWordName){
        //测试删除敏感词
        swmp.delSensiWord(sensiWordName);

        Assert.assertTrue(swmp.delSensiWordSuccess(sensiWordName),"删除敏感词失败！");
        System.out.println("删除敏感词成功！");
    }



}
